Skip to main content

IRuleBuilderInitialCollection<T, TElement>

Rule builder that starts the chain for a child collection

Assembly: ServiceStack.dll
View Source
Declaration
public interface IRuleBuilderInitialCollection<T, TElement> : IRuleBuilder<T, TElement>, IConfigurable<CollectionPropertyRule<T, TElement>, IRuleBuilderInitialCollection<T, TElement>>

Methods

Transform<TNew>(Func<TElement, TNew>)

Transforms the collection element value before validation occurs.

View Source
Declaration
[Obsolete("Use TransformForEach(x => x.Property, transformer) at the root level instead. This method will be removed in FluentValidation 10.")]
IRuleBuilderInitial<T, TNew> Transform<TNew>(Func<TElement, TNew> transformationFunc)
Returns

ServiceStack.FluentValidation.IRuleBuilderInitial<<T>,<TNew>>

Parameters
TypeName
System.Func<<TElement>,<TNew>>transformationFunc
Type Parameters
  • TNew